<%@page contentType="text/html; charset=utf-8"%>
<%@page import="java.math.BigDecimal"%>
<jsp:useBean id="matchDAO" class="inet.db.tennis.TennisMatchDAO" scope="session"/>

<%//@ include file="../include/checklogin.jsp"%>

<%
    String sId = request.getParameter("id");
    String sStatus = request.getParameter("status");

    int status = 0;
    BigDecimal id = null;
    if (sId != null && sStatus != null) {
        try {
           id = new BigDecimal(sId);
           status = Integer.parseInt(sStatus);
        } catch (Exception ex) { out.println("status.jsp: " + ex.getMessage());}
    }
    if (id == null) return;

    if (matchDAO.updateStatus(id, status)) {
       
    }
%>
